package god.services;

import god.interfaces.CircleServiceImpl;
import god.model.CircleVO;

public class CircleService implements CircleServiceImpl {

	@Override
	public void getArea(CircleVO ci) {
		double area = ci.getRadius() * ci.getRadius() * PI;
		ci.setArea(area);
	}

	@Override
	public void getPerimeter(CircleVO ci) {
		double perimeter = ci.getRadius() * 2 * PI;
		ci.setPerimeter(perimeter);
	}
}
